import React from 'react';

class Train extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      isLIked: false
    }
  }

  static defaultProps = {
    likedText: '取消',
    unLikedText: '点赞'
  }

  handleClick() {
    this.setState({
      isLIked: !this.state.isLIked
    })
  }

  render() {
    return (
      <button onClick={this.handleClick.bind(this)}>
        {/* {this.state.isLIked ? } */}
      </button>
    )
  }
}

export default Train;